package buber.view;

import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;

public class Imager {
	private static Imager imager;
	private int mx=800;
	private int my=600;
	private Imager(){
		
	}
	public static Imager getInstance(){
		if(imager==null){
			imager=new Imager();
			return imager;
		}
		else{
			return imager;
		}
	}
	public BufferedImage getImage(){
		BufferedImage image = new BufferedImage(mx,my, BufferedImage.TYPE_INT_RGB); 
		Graphics2D g=image.createGraphics();
		g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
		return image;
	}
}
